<?php
$produk = new M_produk();
$list = $produk->where("status  = 1")->order_by("tanggal", "desc")->limit(8)->get();
$lib_img = new images_thumb();

$m_setting = new M_setting();
$info_website = $m_setting->get();
foreach ($info_website as $iw) {
    if ($iw->name == "alamat_perusahaan") {
        $alamat_perusahaan = $iw->value;
    }
    if ($iw->name == "telp_perusahaan") {
        $telp_perusahaan = $iw->value;
    }
    if ($iw->name == "email") {
        $email = $iw->value;
    }
    if ($iw->name == "url_facebook") {
        $fb = $iw->value;
    }
    if ($iw->name == "url_twitter") {
        $twitter = $iw->value;
    }
    if ($iw->name == "nama_perusahaan") {
        $nama_perusahaan = $iw->value;
    }
    if ($iw->name == "info_perusahaan") {
        $info_perusahaan = $iw->value;
    }
}
?>

<div id="footer2">
     <div class="container">
        <div class="sixteen">
            <ul>
                <li class="home"> <p style="color: white; margin-top: -3px;"> <?php echo $alamat_perusahaan; ?> </p></li>
                <li class="call"> <p style="color: white; margin-top: -3px;"> <?php echo $telp_perusahaan; ?> </p></li>
                <li class="email"><p style="color: white; margin-top: -3px;"> <?php echo $email; ?></p> </li>
                <li class="twiter"><p style="color: white; margin-top: -3px;"><a href="<?php echo $twitter; ?>" target="_blank" style="color: white; margin-top: -3px;">Follow Us </a> </p></li>
                <li class="fb"><p style="color: white; margin-top: -3px;"><a href="<?php echo $fb; ?>" target="_blank" style="color: white; margin-top: -3px;">Facebook</a></p></li>
            </ul>
        </div>
    </div>
</div>   

<footer>
    <div class="container">
        <div class="sixteen">
            <p class="copyright">
                Copyright 2012 for <a href="#"><?php echo $nama_perusahaan; ?></a><br>
                Powered By: <a href="#"><?php echo base_url(); ?></a>
            </p>
            <ul class="socials">
                <li><?php echo anchor($fb, "twitter", "class='facebook'") ?></li>
                <li><?php echo anchor($twitter, "twitter", "class='twitter'") ?></li>
            </ul>
        </div><!--end sixteen-->
    </div><!--end container-->

</footer>